package com.wmm.service.impl;

import com.wmm.dao.EmployeeDao;
import com.wmm.domain.Employee;
import com.wmm.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Autowired
    private EmployeeDao employeeDao;

    @Override
    public List<Employee> findAllWithId(Employee employee) {
        return employeeDao.findAllWithId(employee);
    }

    @Override
    public void addEmployee(Employee employee) {
        employeeDao.addEmployee(employee);
    }
}
